package com.smart.community.commons.exception;

/**
 * 模块业务异常类
 * 
 * @author Wu.Liang
 */
public class ModuleBusinessException extends RuntimeException {
    /**
	 * @author Wu.Liang
	 * @date 2025年8月17日
	 */
	private static final long serialVersionUID = 8766174580660610186L;
	private String errorCode;

    public ModuleBusinessException(String message) {
        super(message);
    }

    public ModuleBusinessException(String errorCode, String message) {
        super(message);
        this.errorCode = errorCode;
    }

    public ModuleBusinessException(String message, Throwable cause) {
        super(message, cause);
    }

    public ModuleBusinessException(String errorCode, String message, Throwable cause) {
        super(message, cause);
        this.errorCode = errorCode;
    }

    public String getErrorCode() {
        return errorCode;
    }

    public void setErrorCode(String errorCode) {
        this.errorCode = errorCode;
    }
}
